﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using Abp.Runtime.Validation;
using MyCompanyName.AbpZeroTemplate.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyCompanyName.AbpZeroTemplate.Daybooks.Dto
{
    public class GetDaybooksInput : PagedAndSortedInputDto, IShouldNormalize
    {
        //public string Filter { get; set; }

        public DateTime? StartDate { get; set; }
        public DateTime? EndDate { get; set; }

        public long? AccountId { get; set; }

        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "BookDay DESC, Id DESC";
            }
        }
    }
}
